<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>易安达</title>
	<link rel="stylesheet" href="__TMPL__/public/static/css/swiper.min.css">
	<link rel="stylesheet" href="__TMPL__/public/static/css/main.min.css">
	<script src="__TMPL__/public/static/js/swiper.min.js"></script>
	<script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
</head>
<style>
	.dropdown-menu {
		display: none
	}
</style>
<taglib name="app\portal\taglib\Portal"/>
<include file="public@function"/>

<php>
use app\portal\model\NavMenuModel; 
</php>
<body>
	<div class="banner">
		<div class="content">
			<div class="swiper-container">
				<div class="swiper-wrapper">
					 <slides id="1">
					<div class="swiper-slide">
						<img src="{:cmf_get_image_preview_url($vo.image)}" alt="">
					</div>
					</slides>
					
				</div>
				<div class="swiper-pagination"></div>
			</div>
		</div>
	</div>
	<div class="nav">
		<div class="container" style="width: 1300px">
			<div class="logo">
				<img src="__TMPL__/public/static/img/logo.png" alt="logo">
			</div>
			<ul>

				<navigation nav-id="" root="" id="main-navigation" class="nav navbar-nav navbar-nav-custom" max-level="0">
					<navigationMenu>
						<php>
							$urlArr = explode('&', $_SERVER["REQUEST_URI"]);
							unset($urlArr[1]);
							$urlRequest = implode('&', $urlArr);
							$active = ""; $url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;
							$urlArr1 = explode('?', $_SERVER["REQUEST_URI"]);	
							unset($urlArr1[1]);
							$urlRequest1 = implode('?', $urlArr1);
							$url1='http://'.$_SERVER['SERVER_NAME'].$urlRequest1;

							if($url == $menu['href'] || $url1 == $menu['href']){ $active = "active";
							}else{ if($menu['children']){ foreach($menu['children'] as $value){ if($url == $value['href'] || $url1 == $value['href']){ $active = "active";
							break; } } }else{ $active = ""; } }

						</php>
						<li class="{$active}">
							<a href="{$menu.href|default=''}" target="{$menu.target|default=''}" j="1" kkk="{$url}" kkk1="{$url1}" kkk2="{$menu['href']}">
								{$menu.name|default=''}
								<!-- <span>{$menu.name_en|default=''}</span> -->
							</a>
						</li>


					</navigationMenu>
					<navigationFolder root="" class="dropdown dropdown-custom dropdown-custom-level-{$level}" dropdown="ul" dropdown-class="dropdown-menu dropdown-menu-level-{$level}">
						<php>
							$urlArr = explode('&', $_SERVER["REQUEST_URI"]);
							unset($urlArr[1]);
							$urlRequest = implode('&', $urlArr);
							$active = ""; $url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;
							$urlArr1 = explode('?', $_SERVER["REQUEST_URI"]);	
							unset($urlArr1[1]);
							$urlRequest1 = implode('?', $urlArr1);
							$url1='http://'.$_SERVER['SERVER_NAME'].$urlRequest1;

							if($url == $menu['href'] || $url1 == $menu['href']){ $active = "active";
							}else{ if($menu['children']){ foreach($menu['children'] as $value){ if($url == $value['href'] || $url1 == $value['href']){ $active = "active";
							break; } } }else{ $active = ""; } }

						</php>
						<li class="{$active}">
							<a href="{$menu.href|default=''}" target="{$menu.target|default=''}" j="2" kkk="{$url}" kkk1="{$url1}" kkk2="{$menu['href']}">
								{$menu.name|default=''}
								<!-- <span>{$menu.name_en|default=''}</span> -->
							</a>
						</li>
					</navigationFolder>
				</navigation>
				<li class="menu-lang">
					<a href="javascript:;">
						Language/语言 ▼
					</a>
					<ul>
						<li><a href="http://www.eanta365.com">中文</a></li>
						<li><a href="http://en.eanta365.com">English</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
	<script>
		$('.menu-lang').mouseover(function(){
			$(this).addClass('active');
		}).mouseleave(function(){
			$(this).removeClass('active');
		})
	</script>